package com.lovo.csc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 每个用户等级有一个不同的折扣优惠
 * </p>
 *
 * @author lovo
 * @since 2022-07-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "折扣率实体类")
public class Discount extends Model {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "折扣率记录id")
    @TableId(value = "discount_id", type = IdType.AUTO)
    private Integer discountId;
    @ApiModelProperty(value = "会员等级")
    private String membership;
    @ApiModelProperty(value = "会员折扣率")
    private Float discountRate;
    @ApiModelProperty(value = "最低充值")
    private Float minRequire;


}
